package com.ruoyi;

import com.ruoyi.common.utils.SpringContextHolder;
import com.ruoyi.common.utils.spring.SpringUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.web.ServerProperties;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        ServerProperties serverProperties = SpringUtils.getBean(ServerProperties.class);
        System.out.println("==================> run at http://localhost:" + serverProperties.getPort()
                + serverProperties.getServlet().getContextPath() + "  <==================");
    }
}